package com.ky.tms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ky.tms.entity.TmsInvoice;
import com.ky.tms.entity.TmsOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chengkaimao
 * @since 2020-04-22
 */
public interface TmsInvoiceMapper extends BaseMapper<TmsInvoice> {

    List<TmsInvoice> invoiceReportPage(IPage<TmsInvoice> pagination, @Param("invoice") TmsInvoice tmsInvoice);

    List<TmsOrder> selectOrders(@Param("invoiceId") Long invoiceId);

    int gathering(@Param("invoice") TmsInvoice tmsInvoice);

}
